package com.msb.Interface;

import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/**
 * @author sunpeng
 * @Date 2021-07-12 15:29
 */
@Configuration
public class UserConfig {

    @Bean
    @ConditionalOnExpression("true")
    public User userABean(){
        return  new UserA();
    }
}
